﻿#ifndef HRIBBONMENU_H
#define HRIBBONMENU_H
#include "HRibbonGlobal.h"
#include <QMenu>

///
/// \brief 用在ribbon的menu
///
class HRIBBON_EXPORT HRibbonMenu : public QMenu
{
    Q_OBJECT
public:
    explicit HRibbonMenu(QWidget *parent = Q_NULLPTR);
    explicit HRibbonMenu(const QString& title, QWidget *parent = Q_NULLPTR);
    QAction *addRibbonMenu(HRibbonMenu *menu);
    HRibbonMenu *addRibbonMenu(const QString& title);
    HRibbonMenu *addRibbonMenu(const QIcon& icon, const QString& title);
    QAction *addWidget(QWidget *w);
};

#endif // HRIBBONMENU_H
